'''
Lexer for Jython 2.5 based on CythonLexer <http://cython.org>`_
'''

import re

from pygments.lexer import Lexer, RegexLexer, ExtendedRegexLexer, \
     LexerContext, include, combined, do_insertions, bygroups, using
from pygments.token import Error, Text, \
     Comment, Operator, Keyword, Name, String, Number, Generic, Punctuation
from pygments.util import get_bool_opt, get_list_opt, shebang_matches
from pygments import unistring as uni
from sphinx import highlighting


line_re  = re.compile('.*?\n')

from sphinx.builders.html import StandaloneHTMLBuilder

class jsp(StandaloneHTMLBuilder):
    pass

jsp.name = 'jsp'
jsp.format = 'jsp'
jsp.copysource = True
jsp.out_suffix = '.jsp'
jsp.link_suffix = '.jsp'  # defaults to matching out_suffix


def setup(app):
    app.add_builder(jsp)
